/**  
 * All rights Reserved, Designed By <a href="www.itttq.com" target="_blank">www.itttq.com</a>
 * @date:   2017-07-21 11:42:21
 * @Copyright: 2017 <a href="www.itttq.com" target="_blank">www.itttq.com</a> Inc. All rights reserved. 
 */
package com.itttq.gshop.pbpm.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.itttq.gshop.domain.po.SysAreaPo;
import com.itttq.gshop.pbpm.mapper.ISysAreaMapper;

@Service
public class SysAreaService {
	@Autowired
	private ISysAreaMapper areaMapper;
	
	/**
	 * 根据父级ID查询区域信息
	 * 
	 * @param pid	父级ID
	 * @Author 迷蝶
	 * @return List<SysAreaPo>
	 */
	public List<SysAreaPo> getAreasByPid(int pid) {
		return areaMapper.findAreasByPid(pid);
	}
	
}
